package com.riche.contractbackend.handler;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.text.SimpleDateFormat;

/**
 * @ClassName: JacksonConfig
 * @Description: Date字段格式控制
 * @Author: Gaoruiqi
 * @Date: 2025-09-13 18:10
 * @Version: 1.0
 **/

@Configuration
public class JacksonConfig {
/*    @Bean
    public ObjectMapper objectMapper() {
        ObjectMapper mapper = new ObjectMapper();
        // 全局统一格式：所有Date字段都按此规则解析
        mapper.setDateFormat(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"));
        return mapper;
    }*/
}
